/**
 * 应用异常
 * @author ZhangXiansheng
 * @date 2019年1月22日11:50:09
 */
export class ApplicationError extends Error {
  readonly name = 'ApplicationError';
  readonly code = undefined;

  /**
   * @param {String} [message]
   * @param {String} [code]
   */
  constructor(message: string = null, code: string = undefined) {
    super(message);
    this.code = code;
  }

}
